<!DOCTYPE html>
<html dir="<?php echo $direction; ?>" lang="<?php echo $lang; ?>">
<head>
<meta charset="UTF-8" />
<title><?php echo $title; ?></title>
<base href="<?php echo $base; ?>" />
<?php if ($description) { ?>
<meta name="description" content="<?php echo $description; ?>" />
<?php } ?>
<?php if ($keywords) { ?>
<meta name="keywords" content="<?php echo $keywords; ?>" />
<?php } ?>
<?php if ($icon) { ?>
<link href="<?php echo $icon; ?>" rel="icon" />
<?php } ?>



<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta content="index, follow" name="robots" />
<meta http-equiv="Content-Language" content="vi" />
<meta http-equiv="REFRESH" content="1800" />
<meta name="revisit-after" content="1 days" />
<link rel="author" href="https://plus.google.com/117840716519713727106/posts" />


<?php foreach ($links as $link) { ?>
<link href="<?php echo $link['href']; ?>" rel="<?php echo $link['rel']; ?>" />
<?php } ?>
<!--<link rel="stylesheet" type="text/css" href="catalog/view/theme/default/stylesheet/stylesheet.css" />-->
<link rel="stylesheet" type="text/css" href="catalog/view/theme/default/stylesheet/template.css" />
<link href="catalog/view/theme/default/stylesheet/zoom.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
<script type="text/JavaScript" src="catalog/view/javascript/jquery/cloud-zoom/cloud-zoom.1.0.2.js"></script>
<link rel="stylesheet" type="text/css" href="catalog/view/theme/default/stylesheet/pro.css"/>
<link rel="stylesheet" type="text/css" href="catalog/view/theme/default/stylesheet/tab.css"/>
<link rel="stylesheet" type="text/css" href="catalog/view/theme/default/assets/8842a280/css/style.css" />

<!--<link rel="stylesheet" type="text/css" href="http://www.nguyenkim.com/stores/1/skins/nguyenkim_v4_christmas/customer/dropdown.css" />-->

<?php foreach ($styles as $style) { ?>
<link rel="<?php echo $style['rel']; ?>" type="text/css" href="<?php echo $style['href']; ?>" media="<?php echo $style['media']; ?>" />
<?php } ?>
<script type="text/javascript" src="catalog/view/javascript/jquery/jquery-1.7.1.min.js"></script>
<script type="text/javascript" src="catalog/view/javascript/jquery/ui/jquery-ui-1.8.16.custom.min.js"></script>
<link rel="stylesheet" type="text/css" href="catalog/view/javascript/jquery/ui/themes/ui-lightness/jquery-ui-1.8.16.custom.css" />
<script type="text/javascript" src="catalog/view/javascript/jquery/ui/external/jquery.cookie.js"></script>
<script type="text/javascript" src="catalog/view/javascript/jquery/colorbox/jquery.colorbox.js"></script>
<link rel="stylesheet" type="text/css" href="catalog/view/javascript/jquery/colorbox/colorbox.css" media="screen" />
<script type="text/javascript" src="catalog/view/javascript/jquery/tabs.js"></script>
<script type="text/javascript" src="catalog/view/javascript/common.js"></script>
<?php foreach ($scripts as $script) { ?>
<script type="text/javascript" src="<?php echo $script; ?>"></script>
<?php } ?>
<!--[if IE 7]>
<link rel="stylesheet" type="text/css" href="catalog/view/theme/default/stylesheet/ie7.css" />
<![endif]-->
<!--[if lt IE 7]>
<link rel="stylesheet" type="text/css" href="catalog/view/theme/default/stylesheet/ie6.css" />
<script type="text/javascript" src="catalog/view/javascript/DD_belatedPNG_0.0.8a-min.js"></script>
<script type="text/javascript">
DD_belatedPNG.fix('#logo img');
</script>
<![endif]-->
<?php echo $google_analytics; ?>
</head>
<body>

<div id="container" class="wraper">

<!--end header-->
<div class="taskbar">
  <div class="main">
    <ul class="topbar fl">
    </ul>
    <ul class="topbar fr">
    </ul>
  </div>
</div>

<!--end header Top -->
<div id="header" class="header clearfix">
  <div class="main">
    <div style="width:990px; position: relative; margin: 0 auto;top: -5px;display:block;"> </div>
    <h1 id="logo" class="logotop">
      <?php if ($logo) { ?>
      <a href="<?php echo $home; ?>"><img src="<?php echo $logo; ?>" title="<?php echo $name; ?>" alt="<?php echo $name; ?>" /></a>
      <?php } ?>
    </h1>
    <!--<div class="item-nav active" id="big-daddy">
        <a class="viewall-item active" href="javascript:;"><span class="fs11">Danh mục</span> <br/> <span>sản phẩm</span> <b>&nbsp;</b></a>
     
    </div>--> 
    <!--end nav-->
    <div id="search" class="frmsearch">
      <?php if ($filter_name) { ?>
      <input type="text" name="filter_name" value="<?php echo $filter_name; ?>" class="txtsearch" />
      <?php } else { ?>
      <input class="txtsearch" type="text" name="filter_name"  value="<?php echo $text_search; ?>" onclick="this.value = '';" onkeydown="this.style.color = '#000000';" />
      <?php } ?>
      <span class="btnsearch"></span> </div>
    <div class="bg_hotline_header">
      <div class="block_sub_left_chat">
        <div class="hotline_sub_text">0938-456-357</div>
        <div class="muahang_sub_text">123chon.vn@gmail.com</div>
      </div>
      <div class="hotro_chat"><br/>
        <a href="ymsgr:sendim?lamhung135" mce_href="ymsgr:sendim?lamhung135" border="0"> <img src='http://opi.yahoo.com/online?u=lamhung135&m=g&t=1'/> </a> </div>
    </div>
    <!--<div class="header-level"> <span class="icon-lv1"></span>
      <div class="level-content lv-width1">Sản phẩm <br/>
        giá tốt</div>
      <span class="icon-lv2"></span>
      <div class="level-content lv-width2">Giao hàng <br/>
        toàn quốc</div>
      <span class="icon-lv3"></span>
      <div class="level-content lv-width3">Đổi trả hàng<br/>
        trong 7 ngày</div>
      <span class="icon-lv4"></span>
      <div class="level-content lv-width4">Thanh toán<br/>
        nhanh và an toàn</div>
    </div>-->
    <!--header-level-->
    <div id="cart" class="box-cart"> <?php echo $cart; ?> </div> 
    <div class="box-admin">
      <?php if (!$logged) { ?>
      <a  rel="nofollow" href="index.php?route=account/register" class="reg">Đăng ký</a> <a  rel="nofollow" href="index.php?route=account/login" class="reg">Đăng nhập</a>
      <?php } else { ?>
      <?php echo $text_logged; ?>
      <?php } ?>
    </div>
    
    
  </div>
  
  <!--box-cart-->
  
  <div class="fix"></div>
</div>
<?php if ($categories) { ?>
<div class="wrap-dropdown-multicolumns">
  <ul class="dropdown-multicolumns clearfix">
    <li  style="margin-left:10px;"><a href="<?php echo $home; ?>" class="drop"><?php echo $text_home; ?></a></li>
    <?php foreach ($categories as $category) { ?>
    <li> <a href="<?php echo $category['href']; ?>" class="drop"><?php echo $category['name']; ?></a>
      <?php if ($category['children']) { ?>
      <div class="dropdown-1column">
        <div class="col-1 firstcolumn lastcolumn">
          <?php for ($i = 0; $i < count($category['children']);) { ?>
          <ul>
            <?php $j = $i + ceil(count($category['children']) / $category['column']); ?>
            <?php for (; $i < $j; $i++) { ?>
            <?php if (isset($category['children'][$i])) { ?>
            <li><a href="<?php echo $category['children'][$i]['href']; ?>"><?php echo $category['children'][$i]['name']; ?></a></li>
            <?php } ?>
            <?php } ?>
          </ul>
          <?php } ?>
        </div>
      </div>
      <?php } ?>
    </li>
    <?php } ?>
  </ul>
  <div class="clear"></div>
</div>
<?php } ?>
<div class="main clearfix" >

<!--end header-->
<div id="notification"></div>
